Gain graph